<?php

namespace org\phpstruct\db\ORM;

use org\phpstruct\core;
use org\phpstruct\db;
use org\phpstruct\db\I;

class Join {
    const JOIN_TYPE_DEFAULT = 0,
    JOIN_TYPE_INNER = 1,
    JOIN_TYPE_OUTER = 2,
    JOIN_TYPE_LEFT = 3,
    JOIN_TYPE_RIGHT = 4,
    JOIN_TYPE_NATURAL = 5,
    JOIN_TYPE_USING = 6;

    private $join_type = self::JOIN_TYPE_DEFAULT;
    private $joincounter = 0;

    private $from;
    private $to;

    public function __construct(Entity $entity, Field $field, $type = Join::JOIN_TYPE_DEFAULT) {
    }

    public function on(Entity $entity, $field) {

    }

    private function countincr() {
        return $this->joincounter++;
    }

}
